<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ include file="/common/taglibs.jsp"%>
<div class="t_bar" >
	<span class="color_red">*</span>${param.title }
</div>

	<table id="persons" border="0" cellspacing="0" cellpadding="0" class="table01 t_css" >
		<thead>
			<tr>
                <th width="5%" >选择</th>
                <th width="5%" >序号</th>
				<th width="10%">姓名</th>
				<th width="5%">性别</th>
				<th width="5%">排名</th>
				<th width="10%">出生地</th>
				<th width="10%">出生年月</th>
				<th width="10%">移动电话</th>
				<th width="10%">毕业学校</th>
				<th width="10%">民族</th>
				<th width="10%">技术职称</th>
				<th width="10%">证件号码</th>
			</tr>
		</thead>
		<tbody id="tab">
			<tr style="display: none">
				<td  align="center"  width="50px" >
				    <input type="radio" name="sel_zh_persons"  />
					<input type="hidden" name="zh_persons|zh_person[0]|basic_info|party1_value" />
					<input type="hidden" name="zh_persons|zh_person[0]|basic_info|party1_name" />
					<input type="hidden" name="zh_persons|zh_person[0]|basic_info|region_value" />
					<input type="hidden" name="zh_persons|zh_person[0]|basic_info|region_name" />
					<input type="hidden" name="zh_persons|zh_person[0]|basic_info|admin_post" />
					<input type="hidden" name="zh_persons|zh_person[0]|basic_info|overseas_value" />
					<input type="hidden" name="zh_persons|zh_person[0]|basic_info|overseas_name" />
					<input type="hidden" name="zh_persons|zh_person[0]|basic_info|back_time" />
					<input type="hidden" name="zh_persons|zh_person[0]|basic_info|org_place" />
					<input type="hidden" name="zh_persons|zh_person[0]|basic_info|work_tel" />
					<input type="hidden" name="zh_persons|zh_person[0]|basic_info|mailing_address" />
					<input type="hidden" name="zh_persons|zh_person[0]|basic_info|post_code" />
					<input type="hidden" name="zh_persons|zh_person[0]|basic_info|email" />
					<input type="hidden" name="zh_persons|zh_person[0]|basic_info|graduate_time" />
					<input type="hidden" name="zh_persons|zh_person[0]|basic_info|degree_education_value" />
					<input type="hidden" name="zh_persons|zh_person[0]|basic_info|degree_education_name" />
					<input type="hidden" name="zh_persons|zh_person[0]|basic_info|major_work" />
					<input type="hidden" name="zh_persons|zh_person[0]|basic_info|educate_value" />
					<input type="hidden" name="zh_persons|zh_person[0]|basic_info|educate_name" />
					<input type="hidden" name="zh_persons|zh_person[0]|basic_info|card_type_value" />
					<input type="hidden" name="zh_persons|zh_person[0]|basic_info|card_type_name" />
					<input type="hidden" name="zh_persons|zh_person[0]|basic_info|org_name" />
					<input type="hidden" name="zh_persons|zh_person[0]|basic_info|award" />
					<textarea style="display:none" name="zh_persons|zh_person[0]|basic_info|award"></textarea>
					<input type="hidden" name="zh_persons|zh_person[0]|basic_info|award_hidden" />
					<input type="hidden" name="zh_persons|zh_person[0]|basic_info|start_time" />
					<input type="hidden" name="zh_persons|zh_person[0]|basic_info|end_time" />
					<input type="hidden" name="zh_persons|zh_person[0]|basic_info|contribution" />
					<textarea style="display:none" name="zh_persons|zh_person[0]|basic_info|contribution"></textarea>
					<input type="hidden" name="zh_persons|zh_person[0]|basic_info|contribution_hidden" />
				</td>
				<td align="center">
					<span name="zh_persons|zh_person[0]@seq_no">[index]</span>
				</td>
				<td align="center">
					<span name="zh_persons|zh_person[0]|basic_info|zh_name"></span>
				</td>
				<td align="center">
					<span name="zh_persons|zh_person[0]|basic_info|gender_name"></span>
					<input type="hidden" name="zh_persons|zh_person[0]|basic_info|gender_value">
				</td>
				<td align="center">
					<span name="zh_persons|zh_person[0]|basic_info|rank"></span>
				</td>
				<td align="center">
					<span  name="zh_persons|zh_person[0]|basic_info|birthplace" ></span>
				</td>
				<td align="center">
					<span name="zh_persons|zh_person[0]|basic_info|birthday"></span>
				</td>
				<td align="center">
					<span name="zh_persons|zh_person[0]|basic_info|mobile"></span>
				</td>
				<td align="center">
					<span name="zh_persons|zh_person[0]|basic_info|college"></span>
				</td>
	
				<td align="center">
					<span name="zh_persons|zh_person[0]|basic_info|ethnicity_name"></span>
					<input type="hidden" name="zh_persons|zh_person[0]|basic_info|ethnicity_value">
				</td>
				<td align="center">
					<span name="zh_persons|zh_person[0]|basic_info|prof_title_name" ></span>
					<input type="hidden" name="zh_persons|zh_person[0]|basic_info|prof_title_value">
				</td>
				<td align="center">
					<span name="zh_persons|zh_person[0]|basic_info|card_code" ></span>
				</td>
			</tr>
			<c:set value="0" var="index" scope="page" />
			<x:forEach select="$xmlData/data/zh_persons/zh_person" var="zh_person">
				<c:choose>
					<c:when test="${index<10}">
						<c:set value="0" var="flag" scope="page" />
					</c:when>
					<c:otherwise>
						<c:set value="" var="flag" scope="page" />
					</c:otherwise>
				</c:choose>
				<tr>
					<td  align="center"  width="50px" >
						<input type="radio" name="sel_zh_persons" /> <!-- 选择 -->
						<input type="hidden" name="zh_persons/zh_person[${flag}${index}]/basic_info/party1_value" value="<x:out select="$zh_person/basic_info/party1_value"/>"/>
						<input type="hidden" name="zh_persons/zh_person[${flag}${index}]/basic_info/party1_name" value="<x:out select="$zh_person/basic_info/party1_name"/>"/>
						<input type="hidden" name="zh_persons/zh_person[${flag}${index}]/basic_info/region_value" value="<x:out select="$zh_person/basic_info/region_value"/>"/>
						<input type="hidden" name="zh_persons/zh_person[${flag}${index}]/basic_info/region_name" value="<x:out select="$zh_person/basic_info/region_name"/>" />
						<input type="hidden" name="zh_persons/zh_person[${flag}${index}]/basic_info/admin_post" value="<x:out select="$zh_person/basic_info/admin_post"/>"/>
						<input type="hidden" name="zh_persons/zh_person[${flag}${index}]/basic_info/overseas_value" value="<x:out select="$zh_person/basic_info/overseas_value"/>"/>
						<input type="hidden" name="zh_persons/zh_person[${flag}${index}]/basic_info/overseas_name" value="<x:out select="$zh_person/basic_info/overseas_name"/>" />
						<input type="hidden" name="zh_persons/zh_person[${flag}${index}]/basic_info/back_time" value="<x:out select="$zh_person/basic_info/back_time"/>"/>
						<input type="hidden" name="zh_persons/zh_person[${flag}${index}]/basic_info/org_place" value="<x:out select="$zh_person/basic_info/org_place"/>"/>
						<input type="hidden" name="zh_persons/zh_person[${flag}${index}]/basic_info/work_tel" value="<x:out select="$zh_person/basic_info/work_tel"/>"/> 
						<input type="hidden" name="zh_persons/zh_person[${flag}${index}]/basic_info/mailing_address" value="<x:out select="$zh_person/basic_info/mailing_address"/>"/>
						<input type="hidden" name="zh_persons/zh_person[${flag}${index}]/basic_info/post_code" value="<x:out select="$zh_person/basic_info/post_code"/>"/>
						<input type="hidden" name="zh_persons/zh_person[${flag}${index}]/basic_info/email" value="<x:out select="$zh_person/basic_info/email"/>"/>
						<input type="hidden" name="zh_persons/zh_person[${flag}${index}]/basic_info/graduate_time" value="<x:out select="$zh_person/basic_info/graduate_time"/>"/> 
						<input type="hidden" name="zh_persons/zh_person[${flag}${index}]/basic_info/degree_education_value" value="<x:out select="$zh_person/basic_info/degree_education_value"/>"/>
						<input type="hidden" name="zh_persons/zh_person[${flag}${index}]/basic_info/degree_education_name" value="<x:out select="$zh_person/basic_info/degree_education_name"/>"/>
						<input type="hidden" name="zh_persons/zh_person[${flag}${index}]/basic_info/major_work" value="<x:out select="$zh_person/basic_info/major_work"/>"/>
						<input type="hidden" name="zh_persons/zh_person[${flag}${index}]/basic_info/educate_value" value="<x:out select="$zh_person/basic_info/educate_value"/>"/>
						<input type="hidden" name="zh_persons/zh_person[${flag}${index}]/basic_info/educate_name" value="<x:out select="$zh_person/basic_info/educate_name"/>"/>
						<input type="hidden" name="zh_persons/zh_person[${flag}${index}]/basic_info/card_type_value" value="<x:out select="$zh_person/basic_info/card_type_value"/>"/>
						<input type="hidden" name="zh_persons/zh_person[${flag}${index}]/basic_info/card_type_name" value="<x:out select="$zh_person/basic_info/card_type_name"/>"/>
						<input type="hidden" name="zh_persons/zh_person[${flag}${index}]/basic_info/org_name" value="<x:out select="$zh_person/basic_info/org_name"/>"/>
						<input type="hidden" name="zh_persons/zh_person[${flag}${index}]/basic_info/gender_value" value="<x:out select="$zh_person/basic_info/gender_value"/>"/>
						<input type="hidden" name="zh_persons/zh_person[${flag}${index}]/basic_info/ethnicity_value" value="<x:out select="$zh_person/basic_info/ethnicity_value"/>"/>
						<input type="hidden" name="zh_persons/zh_person[${flag}${index}]/basic_info/prof_title_value" value="<x:out select="$zh_person/basic_info/prof_title_value"/>"/> 
						<input type="hidden" name="zh_persons/zh_person[${flag}${index}]/basic_info/award" value="<x:out select="$zh_person/basic_info/award"/>"/>
						<textarea style="display:none" name="zh_persons/zh_person[${flag}${index}]/basic_info/award"><x:out select="$zh_person/basic_info/award"/></textarea>
						<input type="hidden" name="zh_persons/zh_person[${flag}${index}]/basic_info/award_hidden" value="<x:out select="$zh_person/basic_info/award_hidden"/>"/>
						<input type="hidden" name="zh_persons/zh_person[${flag}${index}]/basic_info/start_time" value="<x:out select="$zh_person/basic_info/start_time"/>"/>
						<input type="hidden" name="zh_persons/zh_person[${flag}${index}]/basic_info/end_time" value="<x:out select="$zh_person/basic_info/end_time"/>"/>
						<input type="hidden" name="zh_persons/zh_person[${flag}${index}]/basic_info/contribution" value="<x:out select="$zh_person/basic_info/contribution"/>"/>
						<textarea style="display:none" name="zh_persons/zh_person[${flag}${index}]/basic_info/contribution"><x:out select="$zh_person/basic_info/contribution"/></textarea>
						<input type="hidden" name="zh_persons/zh_person[${flag}${index}]/basic_info/contribution_hidden" value="<x:out select="$zh_person/basic_info/contribution_hidden"/>"/>
					</td>
					<td align="center">
						<span name="zh_persons/zh_person[${flag}${index}]@seq_no">${index+1}</span>
					</td>
					<td align="center">
						<span name="zh_persons/zh_person[${flag}${index}]/basic_info/zh_name"><x:out select="$zh_person/basic_info/zh_name" /></span>
					</td>
					<td align="center">
						<span name="zh_persons/zh_person[${flag}${index}]/basic_info/gender_name"><x:out select="$zh_person/basic_info/gender_name" /></span>
					</td>
					<td align="center">
						<span name="zh_persons/zh_person[${flag}${index}]/basic_info/rank"><x:out select="$zh_person/basic_info/rank" /></span>
					</td>
					<td align="center">
						<span name="zh_persons/zh_person[${flag}${index}]/basic_info/birthplace"><x:out select="$zh_person/basic_info/birthplace" /></span>
					</td>
					<td align="center"> 
						<span name="zh_persons/zh_person[${flag}${index}]/basic_info/birthday"><x:out select="$zh_person/basic_info/birthday" /></span>
					</td>
					<td align="center">
						<span name="zh_persons/zh_person[${flag}${index}]/basic_info/mobile"><x:out select="$zh_person/basic_info/mobile" /></span>
					</td>
					<td align="center">
						<span name="zh_persons/zh_person[${flag}${index}]/basic_info/college"><x:out select="$zh_person/basic_info/college" /></span>
					</td>
					<td align="center"> 
						<span name="zh_persons/zh_person[${flag}${index}]/basic_info/ethnicity_name"><x:out select="$zh_person/basic_info/ethnicity_name" /></span>
					</td>
					<td align="center">
						<span name="zh_persons/zh_person[${flag}${index}]/basic_info/prof_title_name"><x:out select="$zh_person/basic_info/prof_title_name" /></span>
					</td>
					<td align="center">
						<span name="zh_persons/zh_person[${flag}${index}]/basic_info/card_code"><x:out select="$zh_person/basic_info/card_code" /></span>
					</td>
					
				</tr>
				<c:set value="${index+1}" var="index" scope="page" />
			</x:forEach>
			</tbody>
	</table>
<br>

	<table border="0" cellpadding="0" cellspacing="1">
		<tr>
			<td>
				<input class="button_02" type="button" value="添加" onclick="if(checkTabLimit('persons',${param.num },'候选人情况最多只能填写${param.num }条')){addNewRow('persons','${ctx}/proposal/2014/edit/dialog/psnInfoEdit_zjk?parentTab=persons&type=add&needMeetingInfo=${param.needMeetingInfo}&TB_iframe=true&height=440&width=900','添加候选人');}try{top.resizeFrame();}catch(e){};">
				&nbsp;<input class="button_02"  id="psnPrev" type="button" value="上移" onclick="movePrev('persons');">
				&nbsp;<input class="button_02"  id="psnNext" type="button" value="下移" onclick="moveNext('persons');">
				&nbsp;<input class="button_02"  id="psnEdit" type="button" value="编辑" onclick="editRow('persons','${ctx}/proposal/2014/edit/dialog/psnInfoEdit_zjk?parentTab=persons&type=edit&needMeetingInfo=${param.needMeetingInfo}&TB_iframe=true&height=440&width=900','编辑候选人')">
				&nbsp;<input class="button_02"  id="psnDel" type="button" value="删除" onclick="deleteSelectedRow('persons','候选人');countPsnNum('persons','psncnt_total');"></td>
		</tr>
		</tbody>
		<tfoot>
		</tfoot>
	</table>
	  <br/>
    
<script type="text/javascript">

/* function psnSynchro(){
	 $("span[name$='fzr_psnname']").text($("#persons tr:eq(2)").find("span[name$='basic_info/zh_name']").text());
	$("span[name$='fzr_gender_name']").text($("#persons tr:eq(2)").find("span[name$='basic_info/gender_name']").text());
	$("span[name$='fzr_degree_name']").text($("#persons tr:eq(2)").find("span[name$='basic_info/degree_name']").text());
	$("span[name$='fzr_birthday']").text($("#persons tr:eq(2)").find("span[name$='basic_info/birthday']").text());
	$("span[name$='fzr_prof_title_name']").text($("#persons tr:eq(2)").find("span[name$='basic_info/prof_title_name']").text());
	$("span[name$='fzr_position']").text($("#persons tr:eq(2)").find("span[name$='basic_info/position']").text());
	$("span[name$='fzr_card_code']").text($("#persons tr:eq(2)").find("span[name$='basic_info/card_code']").text());
	$("span[name$='fzr_work_time']").text($("#persons tr:eq(2)").find("span[name$='contact/work_time']").text());
	$("span[name$='fzr_major_work']").text($("#persons tr:eq(2)").find("span[name$='contact/major_work']").text());
	$("span[name$='fzr_org_name']").text($("#persons tr:eq(2)").find("span[name$='basic_info/org_name']").text());
	$("span[name$='fzr_work_time']").text($("#persons tr:eq(2)").find("input[name$='contact/work_time']").val());
	$("span[name$='fzr_tel_work']").text($("#persons tr:eq(2)").find("input[name$='contact/tel_work']").val());
	$("span[name$='fzr_mobile']").text($("#persons tr:eq(2)").find("input[name$='contact/mobile']").val());
	$("span[name$='fzr_email']").text($("#persons tr:eq(2)").find("input[name$='contact/email']").val());
	$("span[name$='fzr_fax']").text($("#persons tr:eq(2)").find("input[name$='contact/fax']").val());
	$("span[name$='fzr_ethnicity_name']").text($("#persons tr:eq(2)").find("input[name$='basic_info/ethnicity_name']").val());
	$("span[name$='fzr_subject_name']").text($("#persons tr:eq(2)").find("input[name$='basic_info/subject_name']").val()); 
} */
/*  $(document).ready(function(){
  	$("#persons").each(function(){
  		$(this).find("tr:even").addClass("li_1");
  		$(this).find("tr:odd").addClass("li_2");
  	});
  });  */
</script>